package com.tianyi.sfzy1.mapper;

import com.tianyi.sfzy1.domain.Coursequestion;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【coursequestion(课程问题表)】的数据库操作Mapper
* @createDate 2025-01-02 11:46:53
* @Entity com.tianyi.sfzy1.domain.Coursequestion
*/
@Mapper
public interface CoursequestionMapper {
    //删除
    int deleteByPrimaryKey(int questionId);

    //新增
    int insert(Coursequestion record);

    int insertSelective(Coursequestion record);
    //查询所有
    List<Coursequestion> findAll();

    //根据id查询
    Coursequestion selectByPrimaryKey(int questionId);

    int updateByPrimaryKeySelective(Coursequestion record);
    //修改全部字段
    int updateByPrimaryKey(Coursequestion record);


    //查询课程表,课程问题表,咨询表
    List<Coursequestion> selectCourseQuestionConsultant();
}
